<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>添加新商品</title>
    <link type="text/css" rel="stylesheet" th:href="@{/static/css/style.css}" />
    <link rel="stylesheet" th:href="@{/static/css/register.css}"/>
    <link rel="stylesheet" th:href="@{/static/css/cart.css}" />
    <style type="text/css">
        .login_form {
            height: 420px;
            margin-top: 25px;
        }
    </style>
    <script language="JavaScript" th:src="@{/static/script/regist.js}"></script>
</head>
<body>
<div class="header">
    <div class="w">
        <div class="header-right">
            <div class="gohome">
                <a th:href="@{/Commodity.do?operate=seller}">返回</a>
            </div>
        </div>
    </div>
</div>

<div class="login_banner">
    <div class="register_form">
        <h1>添加新商品</h1>
        <form th:action="@{/Commodity.do}" method="post" enctype="multipart/form-data" >
            <input type="hidden" name="operate" value="addCommodity"/>
            <div class="form-item">
                <div>
                    <label>商品名称:</label>
                    <input id="user_nameTXT" type="text" placeholder="请输入商品名称" name="commodity_name"/>
                </div>
            </div>
            <div class="form-item">
                <div>
                    <label>商品价格:</label>
                    <input id="user_pswTXT"  placeholder="商品价格" name="price"/>
                </div>
            </div>
            <div class="form-item">
                <div>
                    <label>商品库存:</label>
                    <input id="user_pswTXT2"  placeholder="请输入商品库存" name="inventory"/>
                </div>
            </div>
            <div class="form-item">
                <div>
                    <label>商品图片：</label>
                    <input type="file" name="part"></span>
                </div>
                <label style="color: #ff0000">请上传jpg格式的图片</label>
            </div>
            <button class="btn">添加</button>
        </form>
    </div>
</div>

</body>
</html>
